import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:myflutterproject/routes.dart';

import 'basecatalogdemo.dart';

class StyleWidgets extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text('样式'),
          centerTitle: true,
        ),
        body: Center(
          child: ListView(
            children: [
              ItemButton('Padding', paddingdemo),
              ItemButton('Theme(将主题应用于子widget。主题描述了应用选择的颜色和字体。)', themedemo),
              ItemButton('MediaQuery(建立一个子树，在树中媒体查询解析不同的给定数据)', drawerdemo),
            ],
          ),
        ));
  }
}
